package com.jy.rhin.model.body.zhengzhuang;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/7 16:33
 * @Description 症状
 */
@Data
public class ZhengZhuang {

    //症状名称
    @XPath(path = "/organizer/component/observation/code[@code='DE04.01.118.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_01_118_00))
    String zhengZhuangMC;
    //症状代码
    @XPath(path = "/organizer/component/observation/code[@code='DE04.01.116.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@code"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_01_116_00))
    String zhengZhuangDM;
    //开始日期
    @XPath(path = "/organizer/component/observation/code[@code='DE04.01.018.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_01_018_00, nullable = true))
    String kaiShiRQ;
    //症状持续时间
    @XPath(path = "/organizer/component/observation/code[@code='DE04.01.115.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_01_115_00, nullable = true))
    String zhengZhuangCXSJ;
}
